import { http } from '~/composables/http';

export function getStudentList(params) {
  return http('/school/studentList', params, 'GET')
}
export function insertStudent(params) {
  return http('/school/insertStudent', params, 'POST')
}

export function getTeacherList() {
  return http('/school/teacherList', {}, 'GET')
}

export function getSdeptToCourseList(params) {
  return http('/school/sdeptToCourse', params, 'GET')
}
export function editSdeptToCourse(params) {
  return http('/school/sdeptToCourse', params, 'POST')
}
export function getTeacherToCourseList() {
  return http('/school/teacherToCourseList', {}, 'GET')
}
export function addTeacherToCourse(params) {
  return http('/school/teacherToCourseList', params, 'POST')
}
export function editTeacherToCourse(params) {
  return http('/school/teacherToCourseList', params, 'PUT')
}
export function delTeacherToCourse(params) {
  return http('/school/teacherToCourseList', params, 'DELETE')
}
export function getCourseList() {
  return http('/school/course', {}, 'GET')
}
export function addCourse(params) {
  return http('/school/course', params, 'POST')
}
export function editCourse(params) {
  return http('/school/course', params, 'PUT')
}
export function delCourse(params) {
  return http('/school/course', params, 'DELETE')
}
export function getStudentScore(params) {
  return http('/school/studentScore', params, 'GET')
}
export function getStudentCourse(params) {
  return http('/school/studentCourse', params, 'GET')
}
export function insertStudentCourse(params) {
  return http('/school/studentCourse', params, 'POST')
}
export function getMaxScore() {
  return http('/school/maxScore', {}, 'GET')
}

export function getRoleList(params) {
  return http('/school/role', params, 'GET')
}
export function insertRole(params) {
  return http('/school/role', params, 'POST')
}
export function delRole(params) {
  return http('/school/role', params, 'DELETE')
}

export function editMenuRole(params) {
  return http('/school/menuRList', params, 'POST')
}
export function getMenuList(params) {
  return http('/school/menuList', params, 'GET')
}
export function insertMenu(params) {
  return http('/school/menuList', params, 'POST')
}
export function editMenu(params) {
  return http('/school/menuList', params, 'PUT')
}
export function delMenu(params) {
  return http('/school/menuList', params, 'DELETE')
}
export function getMenuRList(params) {
  return http('/school/menuRList', params, 'GET')
}

export function getSdeptList(params) {
  return http('/school/sdept', params, 'GET')
}
export function addSdept(params) {
  return http('/school/addSdept', params, 'POST')
}
export function editSdept(params) {
  return http('/school/editSdept', params, 'PUT')
}
export function delSdept(params) {
  return http('/school/delSdept', params, 'DELETE')
}

export function getClassList(params) {
  return http('/school/class', params, 'GET')
}
export function addClass(params) {
  return http('/school/class', params, 'POST')
}
export function editClass(params) {
  return http('/school/class', params, 'PUT')
}
export function delClass(params) {
  return http('/school/class', params, 'DELETE')
}